package cn.cvs.pojo;

import java.util.Date;

/**
 * AuctionRecord entity.
 */

public class AuctionRecord implements java.io.Serializable {

	private static final long serialVersionUID = -533138167857479261L;
	
	// Fields
	private Long id;
	private Long userId;
	private Long auctionId;
	private Date auctionTime;
	private Double auctionPrice;
	// 扩展属性
	private Auction auction;
	private AuctionUser auctionUser;

	// Constructors

	/** default constructor */
	public AuctionRecord() {
	}

	/** minimal constructor */
	public AuctionRecord(Auction auction, Date auctionTime,
			Double auctionPrice) {
		this.auction = auction;
		this.auctionTime = auctionTime;
		this.auctionPrice = auctionPrice;
	}

	/** full constructor */
	public AuctionRecord(Auction auction, AuctionUser auctionUser,
			Date auctionTime, Double auctionPrice) {
		this.auction = auction;
		this.auctionUser = auctionUser;
		this.auctionTime = auctionTime;
		this.auctionPrice = auctionPrice;
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getAuctionId() {
		return auctionId;
	}

	public void setAuctionId(Long auctionId) {
		this.auctionId = auctionId;
	}

	public Auction getAuction() {
		return this.auction;
	}

	public void setAuction(Auction auction) {
		this.auction = auction;
	}

	public AuctionUser getAuctionUser() {
		return this.auctionUser;
	}

	public void setAuctionUser(AuctionUser auctionUser) {
		this.auctionUser = auctionUser;
	}

	public Date getAuctionTime() {
		return this.auctionTime;
	}

	public void setAuctionTime(Date auctionTime) {
		this.auctionTime = auctionTime;
	}

	public Double getAuctionPrice() {
		return this.auctionPrice;
	}

	public void setAuctionPrice(Double auctionPrice) {
		this.auctionPrice = auctionPrice;
	}

}